package com.dcits.electronic_account.mapper;


import com.dcits.electronic_account.bean.BankAccount;
import com.dcits.electronic_account.dto.BindingBankDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BankAccountMapper {

    //根据(身份证,姓名,所属银行,银行卡号)查银行账户信息
    BankAccount selectBankAccountByBindingBankDTO(BindingBankDTO bindingBankDTO);

    //根据id查卡号
    String selectNumber(@Param("id") Integer id);

    //根据卡号查id
    Integer selectIdByNumber(@Param("cardNumber")String cardNumber);
}
